//
//  YFMySendedGiftModel.m
//  project
//
//  Created by yefei on 2019/4/16.
//  Copyright © 2019 健健. All rights reserved.
//

#import "YFMySendedGiftsModel.h"


@implementation YFMySendedGiftModel

+ (nullable NSDictionary<NSString *, id> *)modelCustomPropertyMapper {
    
    return @{
             @"gift_description":@"description",
             };
}

- (NSString *)description {
    return [self yy_modelDescription];
}

- (BOOL)modelCustomTransformFromDictionary:(NSDictionary *)dic {
    
    [self transformProperties];
    
    return YES;
}

#pragma mark - 装配数据
- (void) transformProperties {
    
    self.giftTime = [NSString strTimeWithTimestamp:self.time.timestamp];
    self.gitImageURL = [NSURL URLWithString:self.icon];
}

@end

@implementation YFMySendedGiftsModel

+ (nullable NSDictionary<NSString *, id> *)modelContainerPropertyGenericClass {
    return @{
             @"records": [YFMySendedGiftModel class],
             };
}

- (NSString *)description {
    return [self yy_modelDescription];
}

@end
